{% extends "base_petadmin.html" %}

{% block mainheading %}Euro conversion administration{% endblock %}

{% block content %}

<form action="." method="post">
{% csrf_token %}
<input type="hidden" name="year" value="{{ year }}" />
<table>
    <tr class="row1">
        <th nowrap>
        <a href="/pet/euroconv?year={{ year_prev }}">&laquo;</a>
        {{ year }}
        {% if year_next > 0 %}
            <a href="/pet/euroconv?year={{ year_next }}">&raquo;</a>
        {% endif %}
        </th>
        {% for h in ar_headers %}
            <th>{{ h }}</th>
        {% endfor %}
    </tr>
    <tr class="row2">
        <td>01</td>
        {% for v in ar_conv.01 %}
            <td><input type="text" name="v_01[{{ forloop.counter }}]" value="{{ v }}" style="width: 80px;" /></td>
        {% endfor %}
    </tr>
    <tr class="row1">
        <td>02</td>
        {% for v in ar_conv.02 %}
            <td><input type="text" name="v_02[{{ forloop.counter }}]" value="{{ v }}" style="width: 80px;" /></td>
        {% endfor %}
    </tr>
    <tr class="row2">
        <td>03</td>
        {% for v in ar_conv.03 %}
            <td><input type="text" name="v_03[{{ forloop.counter }}]" value="{{ v }}" style="width: 80px;" /></td>
        {% endfor %}
    </tr>
    <tr class="row1">
        <td>04</td>
        {% for v in ar_conv.04 %}
            <td><input type="text" name="v_04[{{ forloop.counter }}]" value="{{ v }}" style="width: 80px;" /></td>
        {% endfor %}
    </tr>
    <tr class="row2">
        <td>05</td>
        {% for v in ar_conv.05 %}
            <td><input type="text" name="v_05[{{ forloop.counter }}]" value="{{ v }}" style="width: 80px;" /></td>
        {% endfor %}
    </tr>
    <tr class="row1">
        <td>06</td>
        {% for v in ar_conv.06 %}
            <td><input type="text" name="v_06[{{ forloop.counter }}]" value="{{ v }}" style="width: 80px;" /></td>
        {% endfor %}
    </tr>
    <tr class="row2">
        <td>07</td>
        {% for v in ar_conv.07 %}
            <td><input type="text" name="v_07[{{ forloop.counter }}]" value="{{ v }}" style="width: 80px;" /></td>
        {% endfor %}
    </tr>
    <tr class="row1">
        <td>08</td>
        {% for v in ar_conv.08 %}
            <td><input type="text" name="v_08[{{ forloop.counter }}]" value="{{ v }}" style="width: 80px;" /></td>
        {% endfor %}
    </tr>
    <tr class="row2">
        <td>09</td>
        {% for v in ar_conv.09 %}
            <td><input type="text" name="v_09[{{ forloop.counter }}]" value="{{ v }}" style="width: 80px;" /></td>
        {% endfor %}
    </tr>
    <tr class="row1">
        <td>10</td>
        {% for v in ar_conv.10 %}
            <td><input type="text" name="v_10[{{ forloop.counter }}]" value="{{ v }}" style="width: 80px;" /></td>
        {% endfor %}
    </tr>
    <tr class="row2">
        <td>11</td>
        {% for v in ar_conv.11 %}
            <td><input type="text" name="v_11[{{ forloop.counter }}]" value="{{ v }}" style="width: 80px;" /></td>
        {% endfor %}
    </tr>
    <tr class="row1">
        <td>12</td>
        {% for v in ar_conv.12 %}
            <td><input type="text" name="v_12[{{ forloop.counter }}]" value="{{ v }}" style="width: 80px;" /></td>
        {% endfor %}
    </tr>

    <tr class="row2">
        <td colspan="8" align="right"><input type="submit" value="Save" class="default" /></td>
    </tr>
    
</table>
</form>

{% endblock %}
